﻿using UnityEngine;
using System.Collections;

public class Movement : MonoBehaviour {
	

	// Update is called once per frame
	void FixedUpdate() {
		float x = Input.GetAxis ("Horizontal");
		float z = Input.GetAxis ("Vertical");

		Vector3 movement = new Vector3 (x, 0.0f, z);
		rigidbody.AddForce (movement);
	}

	void OnMouseDown() {
		Debug.Log ("asf");
	}
}
